package com.bawei.networkmoudle.uitls;

import android.content.SharedPreferences;

import com.bawei.commonapplication.BaseApplication;


public class SpUtils {
    private static String name = "netcatch";

    public static void saveData(String key,String value){
        SharedPreferences sp = BaseApplication.getAppContext().getSharedPreferences(name,0);
        sp.edit().putString(key,value).commit();
    }

    public static String readData(String key){
        SharedPreferences sp = BaseApplication.getAppContext().getSharedPreferences(name,0);
        return sp.getString(key,"");
    }


}